﻿using UnityEngine;
using System.Collections;

public class ClimberInfo : USaBehaviour
{
    ///// <summary>
    ///// 攀爬物依附的平台
    ///// </summary>
    //public GroundInfo parentGround => m_ParentGround;

    //[SerializeField, Tooltip("攀爬物依附的平台")]
    //private GroundInfo m_ParentGround;

    /// <summary>
    /// 碰撞体
    /// </summary>
    public Collider2D colli => m_Colli ?? (m_Colli = GetComponent<Collider2D>());

    private Collider2D m_Colli;

    /// <summary>
    /// 碰撞体中心
    /// </summary>
    public Vector2 center => (Vector2)transform.position + colli.offset;
}